package com.adcc.automation.service.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class TimeUtil {
    
    public static String createTime(){
        // 获取当前时间
        LocalDateTime now = LocalDateTime.now();
        
        // 定义时间格式
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        
        // 格式化为字符串
        return now.format(formatter);
    }
}
